package com.mall.server.service;

import com.mall.dubbo.api.UmsMemberLevelApi;
import com.tanhua.model.domain.UmsMemberLevel;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MemberLevelService {
    @DubboReference
    private UmsMemberLevelApi umsMemberLevelApi;

    /**
     * 查询所有会员等级
     * @param defaultStatus
     * @return
     */
    public List<UmsMemberLevel> list(UmsMemberLevel defaultStatus) {
        return umsMemberLevelApi.find(defaultStatus);
    }
}
